//
//  KLCurrencyCell.h
//  KLCurrency
//
//  Created by apple on 2017/12/2.
//  Copyright © 2017年 bonc. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KLCurrencyEntity,KLCurrencyCell,KLRoundImageView,KLArithmeticTextField;

@protocol KLCurrencyCellDelegate <NSObject>

@optional
//右划查看汇率曲线
- (void)showCurrencyDetail:(KLCurrencyCell *)cell;
//左划切换货币
- (void)changeCurrency:(KLCurrencyCell *)cell;
@end

@interface KLCurrencyCell : UITableViewCell

@property (nonatomic, copy) NSString *amountInputText;
@property (nonatomic, copy) NSString *amountInputPlaceholder;
@property (nonatomic, copy) NSString *arithmeticInputText;

@property (strong, nonatomic) KLCurrencyEntity *currencyEntity;

@property (weak, nonatomic) id<KLCurrencyCellDelegate> delegate;

//cell创建类方法
+ (instancetype)cellWithTableView:(UITableView *)tableView;

//激活数字输入框
- (void)amountInputDidBecomeFirstResponder;
//激活算术输入框
- (void)arithmeticInputDidBecomeFirstResponder;

//amount过长隐藏货币缩写
- (BOOL)shouldHideAbbreviationLabelWithDecimalAmountText:(NSString *)text;
//amount过长禁止输入
- (BOOL)shouldForbidamountInput:(NSString *)text;
//amount非法输入动画
- (void)amountIllegalInputAnimation;
//arithmeticInput非法输入动画
- (void)arithmeticIllegalInputAnimation;

@end
